import startSearchModel from "@/config/startSearchModel";

export default () => {
    return {
        index: true,
        submitText: '修改',
        size: 'default',
        labelWidth: 120,
        menuType: 'menu',
        menuAlign: 'center',
        menuPosition: "right",
        searchIndex: 2,
        searchMenuSpan: 6,
        searchIcon: true,
        addBtn: false,
        editBtn: false,
        delBtn: true,
        permissionBtn: {
            addBtn: 'act:user:comment:config:add',
            editBtn: 'act:user:comment:config:edit',
            viewBtn: 'act:user:comment:config:info',
            delBtn: 'act:user:comment:config:delete',
        },
        column: [
            {
                label: 'id',
                span: 12,
                prop: 'id',
                align: "left",
                hide: true,
                display: false,
            },
            {
                label: '用户昵称',
                prop: 'userFinalName',
                span: 24,
                disabled: false,
                rules: [{
                    required: true,
                    trigger: "blur"
                }]
            },
            {
                label: '用户id',
                prop: 'userId',
                span: 24,
                hide: true,
                rules: [{
                    required: true,
                    trigger: "blur"
                }]
            },
            {
                label: '用户类型',
                prop: 'userType',
                span: 24,
                rules: [{
                    required: true,
                    trigger: "blur"
                }]
            },
            {
                label: '用户唯一key',
                prop: 'userUniqueKey',
                span: 24,
                hide: true,
                rules: [{
                    required: true,
                    trigger: "blur"
                }]
            },
            {
                label: '审批意见',
                prop: 'commentText',
                search: true,
                searchModel: startSearchModel.LIKE,
                span: 24,
                rules: [{
                    required: true,
                    trigger: "blur"
                }]
            },
            {
                label: '是否默认',
                prop: 'userDefault',
                span: 24,
                search: true,
                type: "radio",
                dicData: [
                    {label: "是", value: 1},
                    {label: "否", value: 0},
                ],
                rules: [{
                    required: true,
                    trigger: "blur"
                }]
            },


        ]
    }
}
